package com.grouppurchase.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.grouppurchase.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface UserMapper extends BaseMapper<User> {
    
    User selectByOpenid(@Param("openid") String openid);
    
    User selectByInviteCode(@Param("inviteCode") String inviteCode);
    
    int updateInviteInfo(@Param("userId") Long userId, @Param("inviterId") Long inviterId);
}
